﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="ProductColor.aspx.cs" Inherits="WebUI.AdminSite.Product.ProductColor" %>
<%@ Import Namespace="WebUI.Helpers" %>
<%@ Register src="../../UserControls/UCPager.ascx" tagname="UCPager" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="../../Scripts/JSDatePick.js"></script>
 <script>
     $(document).ready(function() {
         var s1 = $("#<%= txtDatePickerFrom.ClientID %>");
         var s2 = $("#<%= txtDatePickerTo.ClientID %>");
         datepick(s1, s2);
     });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="width_full">
    <div class="son-find-module width_full">
        <span class="labelTitle">Name</span>
        <asp:TextBox ID="txtColorName" CssClass="inputText" runat="server" />
        <span class="labelTitle">ColorCode</span>
        <asp:TextBox ID="txtColorCode" CssClass="inputText" runat="server" />
        <span class="labelTitle">Fromdate</span>
        <asp:TextBox ID="txtDatePickerFrom" CssClass="inputText datepicker" Type="Picker" runat="server" />
        <span class="labelTitle">Todate</span>
        <asp:TextBox ID="txtDatePickerTo" CssClass="inputText datepicker" Type="Picker" runat="server" />
        <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" Text="Find"/>
    </div>
   <div style="height: 30px"></div>
   
       <asp:GridView ID="grdColor" CssClass="son-find-module width_full" runat="server" 
        AutoGenerateColumns="False" BorderColor="#CCCCCC" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3">
        <Columns>
            <asp:BoundField DataField="STT" HeaderText="STT" 
                SortExpression="ColorNo" />
            <asp:BoundField DataField="ColorName" HeaderText="ColorName" 
                SortExpression="ColorName" />
            <asp:BoundField DataField="ColorCode" HeaderText="ColorCode" 
                SortExpression="ColorCode" />
            <asp:TemplateField HeaderText="Image">
                <ItemTemplate>
                    <img alt="colorinvisible" width="15px" height="15px" src='<%# WebUI.Helpers.link.ToImages(Eval("Img").ToString()) %>'/>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Status" HeaderText="Status" 
                SortExpression="Status" />
            
            <asp:TemplateField HeaderText="View Details">
                <ItemTemplate>
                    
                    <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# link.ToAdminProductColorDetails("ProductColorDetails.aspx", Eval("ColorNo").ToString()) %>'
                            Text="Details" />

                </ItemTemplate>
                
            </asp:TemplateField>
            <asp:CommandField ShowSelectButton="True" />
            
        </Columns>
           <FooterStyle BackColor="White" ForeColor="#000066" />
           <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
           <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
           <RowStyle ForeColor="#000066" />
           <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
           <SortedAscendingCellStyle BackColor="#F1F1F1" />
           <SortedAscendingHeaderStyle BackColor="#007DBB" />
           <SortedDescendingCellStyle BackColor="#CAC9C9" />
           <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
    
   <uc1:UCPager ID="UCPager1" runat="server" />
</div>
    
</asp:Content>
